//
//  HMShopViewController.m
//  G05爱鲜蜂
//
//  Created by 曹魏 on 16/10/20.
//  Copyright © 2016年 何源. All rights reserved.
//

#import "HMShopViewController.h"
#import "StrollViewController.h"
//#import "ListTableViewController.h"
#import "PayTableViewController.h"
#import "HMListCaoweiViewController.h"

@interface HMShopViewController ()

@property (nonatomic,strong) NSArray *dateArray;
@end

@implementation HMShopViewController

-(NSArray *)dateArray {
    if (_dateArray == nil) {
        _dateArray = [[NSArray alloc]init];
    }
    return _dateArray;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
 
    HMListCaoweiViewController *listVC = [[HMListCaoweiViewController alloc]init];
    UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:listVC];
    nav.title = @"购物车";
    [self.navigationController presentViewController:nav animated:YES completion:nil];
    
    UIBarButtonItem *leftBtn = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"v2_goback"] style:UIBarButtonItemStylePlain target:self action:@selector(backHome)];
    
    
    self.navigationItem.leftBarButtonItem = leftBtn;
    
    
}

- (void)backHome{
    [self dismissViewControllerAnimated:YES completion:nil];
}


@end




